package com.oitsm.mo.entity;

import java.util.HashMap;
import java.util.Map;

import javax.persistence.Column;

/**
 * 状态
 * @author Arab Runner
 * Jun 18, 2011 7:24:37 PM
 */
@javax.persistence.Embeddable
public class Status {
	/**
	 * 更新时间
	 */
	@Column(name="updatetime")
	private Long updateTime;
	/**
	 * 描述
	 */
	@Column(name="desc")
	private String desc;
	/**
	 * 代码
	 */
	@Column(name="code")
	private Integer code;
	
	/**
	 * 详细输出 - 这个字段不保存到数据库中
	 */
	@javax.persistence.Transient
	private Map<String,String> details = new HashMap<String,String>();
	
	public Status(){}
	
	//--------------------- setter and getter
	
	public Map<String, String> getDetails() {
		return details;
	}

	public void setDetails(Map<String, String> details) {
		this.details = details;
	}

	public Long getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Long updateTime) {
		this.updateTime = updateTime;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
}
